//
//  WBTestViewController.swift
//  WinsonWeibo
//
//  Created by Administrator on 2017/4/14.
//  Copyright © 2017年 Winson. All rights reserved.
//

import UIKit

class WBTestViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        title = "第\(navigationController?.childViewControllers.count ?? 0)个"
    }

// MARK: - 不停的push到下个控制器
    func pushNext() {

        navigationController?.pushViewController(WBTestViewController(), animated: true)
    }
}
extension WBTestViewController {

    override func setupTableView() {
        super.setupTableView()
        naviItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(pushNext))
    }
}
